﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true"
    CodeFile="Coures.aspx.cs" Inherits="Modeling_Sub_Pages_NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #main
        {
            min-width: 1050px;
        }
        .timeText
        {
            color: #666666;
            font-size: 14px;
        }
        #tbEventList
        {
            padding-bottom: 20px;
            margin-right: auto;
            margin-left: auto;
        }
        #center1
        {
            width: 1060px;
            min-height: 500px;
            padding-top: 15px;
            margin-right: auto;
            margin-left: auto;
        }
        #center
        {
            width: 800px;
        }
        .textContent a
        {
            text-decoration: none;
            color: #0283A0;
        }
        .textContent a:hover
        {
            text-decoration: underline;
        }
        .textContent a:visited
        {
            color: #0283A0;
        }
        .lbTimeTable
        {
            border: thin solid #000000;
            font-weight: bold;
            text-align: center;
        }
        .tbCourse
        {
            padding-left: 15px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="center1">
        <div id="left">
            <table>
                <tr>
                    <td id="activeTD">
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/SubPages/NewCouresPage.aspx"
                            CssClass="activeLink">New Courses</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/SubPages/Achievements.aspx"
                            CssClass="LinkStyle1">Achievements</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/SubPages/DepartmentPage.aspx"
                            CssClass="LinkStyle1">Departments</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/SubPages/FacilitiesPage.aspx"
                            CssClass="LinkStyle1">Facilities</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/SubPages/FacultyPage.aspx"
                            CssClass="LinkStyle1">Faculty</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </div>
        <div id="center">
            <asp:DataList ID="dlEvents" runat="server" RepeatColumns="4" OnItemDataBound="dlEvents_ItemDataBound"
                Width="100%" onitemcommand="dlEvents_ItemCommand">
                <ItemTemplate>
                    <table width="100%" class="tbCourse">
                        <tr>
                            <td>
                                <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Course Name]", "{0:c}")%>'
                                    Font-Size="18pt" Font-Bold="True"></asp:Label>
                                <br />
                                <br />
                                <table width="100%">
                                    <tr>
                                        <td width="33%">
                                            <strong>Subject </strong>
                                        </td>
                                        <td width="33%">
                                            <strong>Teacher</strong>
                                        </td>
                                        <td>
                                            <strong>Date start </strong>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <asp:Label ID="lblSubject" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Subject]", "{0:c}")%>'></asp:Label>
                                        </td>
                                        <td valign="top">
                                            <asp:Label ID="lblTeacher" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Teacher]", "{0:c}")%>'></asp:Label>
                                        </td>
                                        <td valign="top">
                                            <asp:Label ID="lblDateStart" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Start]")%>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <br />
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Location </strong>
                                        </td>
                                        <td>
                                            <strong>Credit </strong>
                                        </td>
                                        <td>
                                            <strong>Day and Time</strong><br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td valign="top">
                                            <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Location]")%>'></asp:Label>
                                        </td>
                                        <td valign="top">
                                            <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Credit]")%>'></asp:Label>
                                        </td>
                                        <td valign="top">
                                            <asp:Label ID="lblSunday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Su]")%>'
                                                CssClass="timeText" ToolTip="Sunday"></asp:Label>
                                            <asp:Label ID="lblMonday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Mo]")%>'
                                                CssClass="timeText" ToolTip="Monday"></asp:Label>
                                            <asp:Label ID="lblTuesday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Tu]")%>'
                                                CssClass="timeText" ToolTip="Tuesday"></asp:Label>
                                            <asp:Label ID="lblWednesday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[We]")%>'
                                                CssClass="timeText" ToolTip="Wednesday"></asp:Label>
                                            <asp:Label ID="lblThursday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Th]")%>'
                                                CssClass="timeText" ToolTip="Thursday"></asp:Label>
                                            <asp:Label ID="lblFriday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Fr]")%>'
                                                CssClass="timeText" ToolTip="Friday"></asp:Label>
                                            <asp:Label ID="lblSaturday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Sa]")%>'
                                                CssClass="timeText" ToolTip="Saturday"></asp:Label>
                                            
                                            <asp:Label ID="Label4" runat="server" Text='<%# String.Format("{0} - {1}", DataBinder.Eval(Container.DataItem, "[Time Start]"), DataBinder.Eval(Container.DataItem, "[Time End]")) %>'
                                                CssClass="timeText"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <br />
                                        </td>
                                        <td>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            
                                        </td>
                                        <td>
                                            <asp:Button ID="btnSignUp" runat="server" Text="Sign Up" Width="90" Height="30" Font-Bold="True" CommandName="SignUp" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                                <br />
                                <strong>Description </strong>
                                <br />
                                <asp:Label ID="Label6" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Description]")%>'></asp:Label>
                                <br />
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </div>
    </div>
</asp:Content>
